package com.xds.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xds.common.utils.PageUtils;
import com.xds.gulimall.member.entity.MemberEntity;
import com.xds.gulimall.member.exception.PhoneExsitException;
import com.xds.gulimall.member.exception.UserNameExsitException;
import com.xds.gulimall.member.vo.MemberLoginVo;
import com.xds.gulimall.member.vo.MemberRegistVo;
import com.xds.gulimall.member.vo.SocialUse;
import com.xds.gulimall.member.vo.UserInfo;

import java.util.Map;

/**
 * 会员
 *
 * @author baixu
 * @email baixu@gmail.com
 * @date 2021-11-09 21:33:05
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo);
    void checkPhone(String phone) throws PhoneExsitException;
    void checkUserName(String username) throws UserNameExsitException;

    MemberEntity login(MemberLoginVo vo);

    MemberEntity login(SocialUse socialUse) throws Exception;


}

